home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 00 / 5 / DISK0059.ZIP / PRINT.DOC < prev    next >
Text File  |  1983-08-04  |  8KB  |  144 lines

  1. `P`P`P`T`EPEPSON `t`eand`E`T PSCREEN
  2. `t`e
  3. `L`L`Sby Bill Richards, Dept. of Communication SFU 291-4119 or -3687
  4. `s`L`L`PThis is a
  5. text formatting program.  It allows you to enter
  6. text more or less free form, with formatting commands interspersed
  7. with the text.  It will adjust the lines of text (align) to any
  8. length you specify (under 71), it will center lines, it will
  9. accept pre-formatted text (i.e. text that is to be printed without aligning),
  10. and it allows you to change the fonts
  11. in the middle of a line.
  12. `L`E`L`PAll formatting commands`e are of the format "^?", 
  13. where the "^" is replaced by a character you use to tell the program
  14. that the next character is a control command, and where the "?"
  15. is replaced by one of the following control characters:
  16. `L`E`T`L`PD d  E e  I i  S s  T t  U u  C  L  P  *  !  ?  0 1 2 3 4 5 6
  17. `L`L`e`t`P`EThere are two general classes of commands.`e  The first controls
  18. the `Efonts.`e  These are the commands with "D, E, I, S, T, U, and @".
  19. These commands only change the font you are printing with, and do not
  20. alter the spacing or location of characters.  
  21. `L`L`PThe second class includes
  22. what might be called `Ecarriage control`e commands.  These are the
  23. "C, L, N, P, *, !, ?, and 0 - 6" commands.  
  24. `L`L`PFor font commands, the upper-case letters turn special fonts on,
  25. while the lower-case ones turn them off.   "^@" turns all special
  26. fonts off.  
  27. `L`L`P "^!" and "^?" go to the top of the next page unconditionally
  28. and conditionally.  The numbers (0, 1, 2, 3, 4, 5, or 6) tell the 
  29. program how far to indent all lines printed until the next indent 
  30. command is received.
  31. "^0" means no indentation, "^1" means indent 5 spaces, "^2" means indent
  32. 10 spaces, etc. 
  33. `L`L`P"^*" turns alignment and indenting off until the next "^*".
  34. `L`L`P"^C" centers the line.
  35. `L`L`P "^N" turns on eight lines per inch spacing.
  36. `L`L`P"^P" starts a new paragraph, and "^L"
  37. starts a new line. Note that to skip a line, you must say "^L^L", rather
  38. than just "^L".
  39.  
  40. `L`L`P Centered lines begin on a new line.  Control sequences cannot
  41. be used in the middle of lines that are centered with the "^C" command.
  42. That is because a control sequence ends the centered line and begins
  43. a new line, no matter what it is. (Sorry, I had a lot of trouble with
  44. this and finally accepted it as it is.)  A "^L" after some centered
  45. text causes a line to be skipped after the centered part is printed.
  46. If you do not want to skip any space after a centered line, don't 
  47. begin the next line with a "^L"; just start it on the next line of
  48. the input file.
  49. `L`L`PWhen you tell the program to indent text, it does it by putting 
  50. a number of blank spaces at the 
  51. beginning of each line as it is printed.  This cuts into the line 
  52. length, so your text takes more space on the page if it is indented.  
  53. New paragraphs that are also indented are "double indented" -- that 
  54. is, the paragraph indentation takes place after the other indentation.
  55. Centering and ^* take precedence over indenting.
  56. `L`L`PThere are two kinds of page numbers.  The first is plain, where
  57. the number looks like this:`L
  58. `E`T`L`C- 4-
  59. `t`e`L  The second is with section letters and numbers, like this:
  60. `L`L`E`T`CA-3   A-4   B-1   B-2   B-3   C-1   etc.
  61. `e`t`LTo chose the one you want, you just answer the question at the beginning
  62. of the program when you run it.  With letters, the program starts
  63. at the letter you specify.  To start at "A", you tell it "1".  To
  64. start at "B", you tell it "2", etc.
  65. `L`L`PIf you are using "^*" and you give it a line that is too long,
  66. the program pauses when it is printing and asks you to tell it whether or not
  67. to continue.  Actually, if you type anything other than CTL-BREAK
  68. the program wil continue.  Only part of the offending line is printed.
  69. `L`L`PIf you want to use the printer to make copies on bond paper, ditto
  70. stencils, or gestetner stencils, there is no problem, since the program
  71. pauses at the top of each new page and waits for you to tell it that you
  72. are ready.  It will ask "Ready?"  If you give it a carriage return, it
  73. won't ask anymore (on successive pages).  If you give it any character
  74. and then a carriage return, it will continue to pause for each new page.
  75. `L`L`L`PThere are two versions of the program: `EPEPSON`e and `EPSCREEN.`e  
  76. PEPSON is for printing on the Epson MX-80.  PSCREEN displays the
  77. formatted text on the screen.  The major difference between the two is
  78. that PSCREEN does not execute the font commands.  ALl the spacing is
  79. the same (except for Double and Squashed), but the font commands are
  80. ignored.  With PEPSON, escape sequences are sent for the font commands.
  81. `L`L`EMiscellaneous notes
  82. `L`L`P1. "^L" always begins a new line.  "^P" causes five spaces to be 
  83. printed.  If "^P" comes at the beginning of a line, that line is indented.
  84. If it comes in the middle of a line, that line is ended, a new line is
  85. started, and it is indented.  So, to start a new paragraph on the next
  86. line, you can use just "^P" or "^L^P".  They have the same effect.  To skip a
  87. line between paragraphs, you need "^L^L^P" ('end of the current line', 'end
  88. of the next line', and 'indent the new line').
  89. `L`L`P2. The "^S" and "^D" commands work, but there is a problem:
  90. PSCREEN, since it can't show different widths, can't show correct line
  91. lengths when you use squashed letters. Be careful here...
  92. `L`L`P3. PEPSON and PSCREEN have a default format option.  When you begin
  93. either program, the first thing it says is "set printer to top of page. Ready?"
  94. It pauses for a response from you.  Anything other than a lowercase "s" followed
  95. by a carriage return puts you into prompt mode.  A lowercase "s" and carriage
  96. return gives you the "Standard" form, which is 6 lines per inch, 11 inch
  97. page, 66 lines per page, start printing on line 6, stop on line 59, page
  98. number on line 63, one inch left margin, 68 character lines.  PEPSON allows
  99. you the option of choosing the number of lines per inch.  If you choose some
  100. number, say 4, remember that 11 inch paper will give you 44 line pages.  
  101. Adjust your margins (first line of printing and last line of printing)
  102. accordingly.
  103. `L`L`P4. When you are using "^*", two things cause a new line: 1) any
  104. use of the "^L" command; and 2) a new line in your input file.  Study the
  105. page with the control sequences (the one before this one) and the file
  106. that created this page (at the end of this section of notes) to see how
  107. "^*" works.
  108. `!`L`CDemo
  109. `L`LThis is a short `IDEMONSTRATION`i of the 
  110. formatting capabilities of this program. `L`PAs
  111. you can see, a number of options have been used, including:
  112. `Ccentering,`L`Eemphasized`e `Ssquashed`s `Ddouble wide`d
  113. `Uunderlining`u `D`I`T`Sdouble italic two-strike-squashed`@`1
  114. and indented text.  The next parts are indented further
  115. `2 than the preceeding parts, and the next parts`3 even further.
  116. `0but here is no indenting at all. Following is a little
  117. table to show the use of the * command:
  118. `*
  119.                     TABLE
  120.          |------------|-----------|
  121.          |  yes       |    no     |
  122.          |------------|-----------|
  123.          |   72%      |    28%    |
  124.          |------------|-----------|
  125.  
  126. ^*^!^LDemo"^L"
  127. ^L^LThis is a short ^IDEMONSTRATION^i of the 
  128. formatting capabilities of this program. ^L^PAs
  129. you can see, a number of options have been used, including:
  130. ^Ccentering,^L^Eemphasized^e ^Ssquashed^s ^Ddouble wide^d
  131. ^Uunderlining^u ^D^I^T^Sdouble italic two-strike-squashed^@^1
  132. and indented text.  The next parts are indented further
  133. ^2 than the preceeding parts, and the next parts^3 even further.
  134. ^0but here is no indenting at all. Following is a little
  135. table to show the use of the * command:
  136. ^*
  137.                     TABLE
  138.          |------------|-----------|
  139.          |  yes       |    no     |
  140.          |------------|-----------|
  141.          |   72%      |    28%    |
  142.          |------------|-----------|
  143.  
  144. ^*